package net.wesc.ac.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class WescAC implements EntryPoint {

	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		final HorizontalPanel main = new HorizontalPanel(); 
		final MainPanel left = new MainPanel();
		final HTML copyright = new HTML("<p align='center'>Copyright &#169; Qinghai Institute of Salt Lakes, CAS. 2011-2012 All Rights Reserved.</p>");
		left.setSize("1000px", "650px");
		left.addStyleName("leftPanel");
		left.setBorderWidth(1);
		
		main.add(left);
		RootPanel.get("root").add(main);
		RootPanel.get("root").add(copyright);
		
		WelcomeDialog welcome = new WelcomeDialog();
		welcome.show();
	}
}
